﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SOM.Model;

namespace SOM.SingletonContext
{
    public class Context
    {
        private static SOMEntities _instance;

        public static SOMEntities Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new SOMEntities();
                    return _instance;
                }
                else
                {
                    return _instance;
                }
            }
        }

        private Context()
        {

        }


    }
}
